﻿import request from '/@/utils/request';
enum Api {
  AddSysMqSubscriber = '/api/sysMqSubscriber/add',
  DeleteSysMqSubscriber = '/api/sysMqSubscriber/delete',
  UpdateSysMqSubscriber = '/api/sysMqSubscriber/update',
  PageSysMqSubscriber = '/api/sysMqSubscriber/page',
  ExportSysMqSubscriber = 'api/sysMqSubscriber/export',
}

//导出队列订阅
export const exportSysMqSubscriberExcel=(params?:any)=>
	request({
		url:Api.ExportSysMqSubscriber,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加队列订阅
export const addSysMqSubscriber = (params?: any) =>
	request({
		url: Api.AddSysMqSubscriber,
		method: 'post',
		data: params,
	});

// 删除队列订阅
export const deleteSysMqSubscriber = (params?: any) => 
	request({
			url: Api.DeleteSysMqSubscriber,
			method: 'post',
			data: params,
		});

// 编辑队列订阅
export const updateSysMqSubscriber = (params?: any) => 
	request({
			url: Api.UpdateSysMqSubscriber,
			method: 'post',
			data: params,
		});

// 分页查询队列订阅
export const pageSysMqSubscriber = (params?: any) => 
	request({
			url: Api.PageSysMqSubscriber,
			method: 'post',
			data: params,
		});


